<?php

namespace app\xwam\validate;

/**
 * 修改密码验证类
 *
 * @version 2018-1-26 sochishun added.
 */
class PasswordValidate extends \think\Validate {

    // 批量验证
    protected $batch = false;
    // 当前验证的规则
    protected $rule = [
        'id' => 'require|number',
        'password' => 'require|max:25|confirm:password_confirm',
    ];
    // 验证字段描述
    protected $field = [
        'id' => '用户ID',
        'password' => '密码',
        'password_confirm' => '确认密码',
    ];
}
